<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/pages/common/taglib.jsp"%>

<c:forEach var="cashapply" varStatus="cashapplyindex" items="${datas}">
	<tr>
		<td>
			${cashapply.id}
			<c:if test="${cashapplyindex.index==0}"><input type="hidden" id="itemCount" value="${itemCount}"/></c:if>
		</td>
		<td class="keys">${cashapply.nickname}</td>
		<td style="color:red">￥ ${tz:formatDouble(cashapply.money)}</td>
		<td >
			<c:if test="${cashapply.dealCode == '001'}">
				${cashapply.dealname}
			</c:if>
			<c:if test="${cashapply.dealCode == '002'}">
				<span style="color:green">${cashapply.dealname}</span>
			</c:if>
			<c:if test="${cashapply.dealCode == '003'}">
				<span style="color:red">${cashapply.dealname}</span>
			</c:if>

		</td>
		<td >${cashapply.opname==null? '暂无' : cashapply.opname}</td>
		<td class="tmui-tips" tip="${tz:formatDate(cashapply.createTime,'yyyy-MM-dd HH:mm:ss')}">
				${tz:timeFormat(cashapply.createTime)}
		</td>
		<%--<td>--%>
			<%--<tz:if test="${cashapply.deleteCode=='001'}">--%>
				<%--<tz:then><a href="javascript:void(0)" opid="${adminuser.id}" mark="deleteCode" val="002" onclick="tzAdmin.op(this);" class="green">否</a></tz:then>--%>
                	<%--<tz:else><a href="javascript:void(0)" opid="${adminuser.id}" mark="deleteCode" val="001" onclick="tzAdmin.op(this);" class="red">是</a></tz:else>--%>
			<%--</tz:if>--%>
		<%--</td>--%>

		<td>
            <c:if test="${cashapply.dealCode == '001'}">
                <a data-opid="${cashapply.id}" data-userid="${cashapply.user_id}" data-money="${cashapply.money}" onclick="cashApply.updateAgree(this)"  class="btn btn-success" >同意</a>
                <a href="javascript:void(0);" data-opid="${cashapply.id}" onclick="cashApply.updateRefuse(this)" class="btn btn-danger">驳回</a>
             </c:if>
        </td>

	</tr>
</c:forEach>
